import { axios } from '@/utils/request'
// 商保管理
export function getTablePage(parameter) {
  return axios({
    url: '/sys/insure/business/pageInsureBusiness',
    method: 'post',
    data: parameter
  })
}
export function downloadInsureBusinessExcelTemplate() {
  return axios({
    url: '/sys/insure/business/downloadInsureBusinessExcelTemplate',
    method: 'get',
    responseType: 'blob'
  })
}
export function businessAdd(parameter) {
  return axios({
    url: '/sys/insure/business/add',
    method: 'post',
    data: parameter
  })
}
export function businessOperate(parameter) {
  return axios({
    url: '/sys/insure/business/operate',
    method: 'post',
    data: parameter
  })
}
export function getTableStaffPage(parameter) {
  return axios({
    url: '/sys/insure/business/pageInsureBusinessStaff',
    method: 'post',
    data: parameter
  })
}
export function removeInsureBusinessStaff(parameter) {
  return axios({
    url: '/sys/insure/business/removeInsureBusinessStaff',
    method: 'post',
    data: parameter
  })
}
export function exportInsureBusiness(parameter) {
  return axios({
    url: '/sys/insure/business/exportInsureBusiness',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function exportInsureBusinessStaff(parameter) {
  return axios({
    url: '/sys/insure/business/exportInsureBusinessStaff',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
// 商保管理-企业
export function getEnterpriseTablePage(parameter) {
  return axios({
    url: '/sys/insure/business/enterprise/pageInsureBusiness',
    method: 'post',
    data: parameter
  })
}
export function getEnterpriseTableStaffPage(parameter) {
  return axios({
    url: '/sys/insure/business/enterprise/pageInsureBusinessStaff',
    method: 'post',
    data: parameter
  })
}
export function enterpriseExportInsureBusiness(parameter) {
  return axios({
    url: '/sys/insure/business/enterprise/exportInsureBusiness',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function enterpriseExportInsureBusinessStaff(parameter) {
  return axios({
    url: '/sys/insure/business/enterprise/exportInsureBusinessStaff',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}